public class Main {
    public static void func1(int[] array){
        array =new int[]{10,20,30,40,50};
    }
    public static void func2(int[] array){
        array[0]=10;
    }

    public static void main(String[] args) {
        int[] array={1,2,3};
        func1(array);
        print(array);
        main1(args);
    }

    public static void main1(String[] args) {
        int[] array={1,2,3};
        func2(array);
        print(array);
    }
    public static void print(int[] array){
        for (int i = 0; i < array.length; i++) {
            System.out.print(array[i]);
        }
        System.out.println();
    }
    public static void main2(String[] args) {
        int[] array={1,2,3};
        print(array);
    }
}
